<?php

namespace App\Http\Controllers\Admin;

use App\Http\Resources\Admin\ConsultantResource;
use App\Models\Consultant;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;


class ConsultantsController extends Controller
{
    /**
     * 顾问列表
     */
    public function index(Request $request)
    {
        $pageSize = $request->input('page_size') ?: 15;
        $data = Consultant::query()->paginate($pageSize);

        return ConsultantResource::collection($data)->additional([
            'status' => 'success',
            'code' => 200,
        ]);
    }

    /**
     * 新增顾问
     */
    public function store()
    {

    }

    /**
     * 编辑顾问
     */
    public function update()
    {

    }
}
